package com.chixing.day04_oop;

public class AccountTest {
    public static void main(String[] args) {
        Account account1 = new Account(1001L,"张三","123",18360316460L,20000,0);
        Account account2 = new Account(1002L,"李四","123",18360316460L,30000,1);
        Account account3 = new Account(1003L,"王五","123",18360316460L,40000,0);

        System.out.println(account1.toString());
        System.out.println(account2.toString());
        System.out.println(account3.toString());

        account1.depoist(1000);
        System.out.println(account1.getAccBalance());

        Bank bank = new Bank();
        bank.registAccount(account1);
        bank.registAccount(account2);
        bank.registAccount(account3);
        System.out.println(bank.toString());
    }
}





